package com.ruoyi.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 员工请假记录对象 att_staff_leave
 * 
 * @author cf
 * @date 2025-05-30
 */
public class AttStaffLeave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 员工编号 */
    @Excel(name = "员工编号")
    private  String empCode;

    /** 员工名称 */
    @Excel(name = "员工名称")
     private  String empName;
    /** 员工ID */
//    @Excel(name = "员工ID")
    private Long staffId;

    /** 请假天数 */
    @Excel(name = "请假天数")
    private Long putOffDays;

    /** 请假类型 */
    @Excel(name = "请假类型")
    private Integer leaveType;

    /** 起始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "起始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer auditStatus;

    /** 逻辑删除：0未删除，1已删除 */
    private Integer isDeleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public String getEmpCode() {
        return empCode;
    }

    public void setEmpCode(String empCode) {
        this.empCode = empCode;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setPutOffDays(Long putOffDays) 
    {
        this.putOffDays = putOffDays;
    }

    public Long getPutOffDays() 
    {
        return putOffDays;
    }
    public void setLeaveType(Integer leaveType) 
    {
        this.leaveType = leaveType;
    }

    public Integer getLeaveType() 
    {
        return leaveType;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setAuditStatus(Integer auditStatus) 
    {
        this.auditStatus = auditStatus;
    }

    public Integer getAuditStatus() 
    {
        return auditStatus;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("staffId", getStaffId())
            .append("empCode", getEmpCode())
            .append("empName", getEmpName())
            .append("putOffDays", getPutOffDays())
            .append("leaveType", getLeaveType())
            .append("startDate", getStartDate())
            .append("auditStatus", getAuditStatus())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("isDeleted", getIsDeleted())
            .toString();
    }
}
